<?php
/*
    Authors and license
*/

include_once(dirname(__FILE__).'/../../libraries/security.php');
include_once(dirname(__FILE__).'/message_sql.php');

if(isset($_SESSION['logged'])) // user logged in?
{
	$id = $_SESSION['id']; // grab user id to sql querry		
	
	echo '<h2>'.$lang_folder.$lang_message_outbox.'</h2>';
	
	printUserOutbox($id); // printing array with all incoming message	
}
//  if user is not logged in nothing realy should be done. Just no efect.
?>